package com.whnk.model.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.model.mapper.DefTIndexinfoMapper;
import com.whnk.model.domain.DefTIndexinfo;
import com.whnk.model.service.IDefTIndexinfoService;

/**
 * 指标定义Service业务层处理
 * 
 * @author whnk
 * @date 2021-08-31
 */
@Service
public class DefTIndexinfoServiceImpl implements IDefTIndexinfoService 
{
    @Autowired
    private DefTIndexinfoMapper defTIndexinfoMapper;

    /**
     * 查询指标定义
     * 
     * @param id 指标定义主键
     * @return 指标定义
     */
    @Override
    public DefTIndexinfo selectDefTIndexinfoById(Long id)
    {
        return defTIndexinfoMapper.selectDefTIndexinfoById(id);
    }

    /**
     * 查询指标定义列表
     * 
     * @param defTIndexinfo 指标定义
     * @return 指标定义
     */
    @Override
    public List<DefTIndexinfo> selectDefTIndexinfoList(DefTIndexinfo defTIndexinfo)
    {
        return defTIndexinfoMapper.selectDefTIndexinfoList(defTIndexinfo);
    }

    /**
     * 新增指标定义
     * 
     * @param defTIndexinfo 指标定义
     * @return 结果
     */
    @Override
    public int insertDefTIndexinfo(DefTIndexinfo defTIndexinfo)
    {
        return defTIndexinfoMapper.insertDefTIndexinfo(defTIndexinfo);
    }

    /**
     * 修改指标定义
     * 
     * @param defTIndexinfo 指标定义
     * @return 结果
     */
    @Override
    public int updateDefTIndexinfo(DefTIndexinfo defTIndexinfo)
    {
        return defTIndexinfoMapper.updateDefTIndexinfo(defTIndexinfo);
    }

    /**
     * 批量删除指标定义
     * 
     * @param ids 需要删除的指标定义主键
     * @return 结果
     */
    @Override
    public int deleteDefTIndexinfoByIds(Long[] ids)
    {
        return defTIndexinfoMapper.deleteDefTIndexinfoByIds(ids);
    }

    /**
     * 删除指标定义信息
     * 
     * @param id 指标定义主键
     * @return 结果
     */
    @Override
    public int deleteDefTIndexinfoById(Long id)
    {
        return defTIndexinfoMapper.deleteDefTIndexinfoById(id);
    }
}
